import axiosData from "@/api/axios";

export default {
  /**
   * @description: 获取故障关键字管理列表 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {} *
   * @return {Array}
   */
  queryPageList(params) {
    return axiosData.post(
      "/v3/equipment-hitch/v1/hitchKeyword/queryPageList",
      params
    );
  },
  /**
   * @description: 获取故障关键字管理列表 *代表必填
   * @return {Array}
   */
  query(params) {
    return axiosData.get(
      `/v3/equipment-hitch/v1/hitchKeyword/queryByEquipmentTypeCode?equipmentTypeCode=${params}`
    );
  },
  /**
   * @description: 新增故障关键字管理
   * @param {Object} params *
   * @return {Object}
   */
  add(params) {
    return axiosData.post("/v3/equipment-hitch/v1/hitchKeyword/add", params);
  },
  /**
   * @description: 编辑故障关键字管理
   * @param {Object} params *
   * @return {Object}
   */
  edit(params) {
    return axiosData.post("/v3/equipment-hitch/v1/hitchKeyword/edit", params);
  },
  /**
   * @description: 批量删除故障关键字管理
   * @param {Object} params *
   * @return {Object}
   */
  delList(params) {
    return axiosData.post(
      "/v3/equipment-hitch/v1/hitchKeyword/delByHitchKeywordCodeList",
      params
    );
  },
  /**
   * @description: 修改关键字
   * @param {Object} params *
   * @return {Object}
   */
  editKeyWords(params) {
    return axiosData.post("/v3/equipment-hitch/v1/hitchInfo/edit", params);
  }
};
